package com.limou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.limou.domain.ResponseResult;
import com.limou.domain.dto.AddArticleDto;
import com.limou.domain.entity.Article;
import org.springframework.stereotype.Service;


public interface ArticleService extends IService<Article> {
    // 查询热门文章
    ResponseResult hotArticleList();


    // 分页查询文章
    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    // 查询文章详情
    ResponseResult getArticleDetail(Long id);

    // 更新浏览量
    ResponseResult updateViewCount(Long id);

    //新增博客文章
    ResponseResult add(AddArticleDto article);
}
